package org.cwnuit.train.service;

import java.util.List;

import org.cwnuit.train.dao.RulesDAO;
import org.cwnuit.train.dao.SworksDAO;
import org.cwnuit.train.domain.Sworks;

public class SworksService {
	
	RulesDAO rulesDAO = new RulesDAO();
	SworksDAO sworksDAO = new SworksDAO();
	
	

	//添加规章信息
	public boolean addSwork(String SQL) {
		return sworksDAO.addSwork(SQL);
	}
	
	//修改规章信息 
	public boolean updateSwork(String SQL) {
		return sworksDAO.updateSwork(SQL);
	}
	
	//删除规章信息
	public boolean deleteSwork(String SQL) {
		return sworksDAO.deleteSwork(SQL);
	}
	
	//查询所有规章信息
	public List<Sworks> findSworks(String SQL) {
		return sworksDAO.findSworks(SQL);
	}
	
	//查询规章信息
	public Sworks findSwork(String SQL) {
		return sworksDAO.findSwork(SQL);
	}

}
